import request from '@/config/http.js'

export function list(params) {
  return request({
    url: 'pgmmanage/pgmplayplan',
    method: 'get',
    params
  })
}

export function add(data) {
  return request({
    url: 'pgmmanage/pgmplayplan',
    method: 'post',
    data
  })
}

export function edit(data) {
  return request({
    url: 'pgmmanage/pgmplayplan',
    method: 'put',
    data
  })
}

export function del(ids) {
  return request({
    url: 'pgmmanage/pgmplayplan',
    method: 'delete',
    data: ids
  })
}

export function detailList(params) {
  return request({
    url: 'pgmmanage/pgmplaydetails',
    method: 'get',
    params
  })
}

export function addDetails(data) {
  return request({
    url: 'pgmmanage/pgmplaydetails',
    method: 'post',
    data
  })
}

export function putDetails(data) {
  return request({
    url: 'pgmmanage/pgmplaydetails',
    method: 'put',
    data
  })
}

export default { list, add, edit, del, detailList, addDetails, putDetails }
